/**
 * Display detail report
 */
function showReportRealDetail(lineid, year, month, companies) {
	var controller = Ext.app.Application.instance.getController('Cps.controller.Dashboard');
	controller.showReportRealDetail(lineid, year, month, companies);
}
function showReportRealDetailYear(lineid, year, month, companies) {
	var controller = Ext.app.Application.instance.getController('Cps.controller.Dashboard');
	controller.showReportRealDetailYear(lineid, year, month, companies);
}
function showReportRealDetailEntry(lineid, year, month, companies, acc, period) {
	var controller = Ext.app.Application.instance.getController('Cps.controller.Dashboard');
	controller.showReportRealDetailYearEntry(lineid, year, month, companies, acc, period);
}
Ext.application({
	requires: ['Ext.container.Viewport'],
    name: 'Cps',
    appFolder: Cps.Config.appFolder,
    
    controllers: ['Cps.controller.Dashboard'],
    
    launch: function() {
        Ext.create('Ext.container.Viewport', {
        	layout: {
                type: 'fit'
            },
            items: [
                {
                	xtype: 'dashboard'
                }
            ]
        });
    }
});